package com.cskaoyan.bean.vo.vxVo;

import com.cskaoyan.bean.po.wxPo.BrandDetailPo;
import com.cskaoyan.bean.po.wxPo.MarketAddress;
import com.cskaoyan.bean.po.wxPo.MarketBrand;
import lombok.Data;

import java.util.Date;

/**
 * @author: DYQ
 * @time: Created on 2022/6/7 20:40
 */

@Data
public class BrandDetailVo {

    private int id;

    private String name;

    private String desc;

    private String picUrl;

    private int sortOrder;

    private double floorPrice;

    private Date ddTime;

    private Date updateTime;

    private boolean deleted;

    public static BrandDetailVo data(BrandDetailPo brandDetailPo){
        BrandDetailVo brandDetailVo = new BrandDetailVo();
        brandDetailVo.setId(brandDetailPo.getId());
        brandDetailVo.setName(brandDetailPo.getName());
        brandDetailVo.setDesc(brandDetailPo.getDesc());
        brandDetailVo.setPicUrl(brandDetailPo.getPicUrl());
        brandDetailVo.setSortOrder(brandDetailPo.getSortOrder());
        brandDetailVo.setFloorPrice(brandDetailPo.getFloorPrice());
        brandDetailVo.setDdTime(brandDetailPo.getAddTime());
        brandDetailVo.setUpdateTime(brandDetailPo.getUpdateTime());
        brandDetailVo.setDeleted(brandDetailPo.isDeleted());
        return brandDetailVo;
    }

}
